# 导包
import app


# 定义接口类
class ApproveAPI:
    # 初始化
    def __init__(self):
        self.approve_url = app.BASE_URL + '/member/realname/approverealname'
        self.get_approve_info_url = app.BASE_URL + '/member/member/getapprove'

    # 定义认证方法
    def approve(self, session, realname, card_id):
        approve_data = {"realname": realname, "card_id": card_id}
        return session.post(self.approve_url, data=approve_data, files={'1':'2'})

    # 获取认证信息
    def get_approve_info(self, session):
        return session.post(self.get_approve_info_url)

































